<?php
$agent_model = $this->agentalldata;
?>
<div id="pad-wrapper">
    <div class="row pagelist-header">
        <h3>Agent Detail</h3>
    </div>
    <div class="table-products">
       
        <div class="row-fluid ">
            <div class="pull-right">
                <a class="btn-flat new-product" href="<?php echo $this->url(array('module' => 'default', 'controller' => 'agent', 'action' => 'list'), null, TRUE); ?>"> Back</a>
            </div>              
        </div>

        <div class="main_detail">
            <div class="sub_main">
                <div class="detail_label">Name: </div>
                <div class="detail_data"><?php echo ucfirst($agent_model['ag_name']); ?></div>
            </div>


            
            <div class="sub_main">
                <div class="detail_label">Mobile No: </div>
                <div class="detail_data"><?php echo $agent_model['ag_mobile']; ?></div>
            </div>


            <div class="sub_main">
                <div class="detail_label">Address: </div>
                <div class="detail_data"><?php echo $agent_model['ag_address']; ?></div>
            </div>
            
            

            <div class="sub_main">
                <div class="detail_label">Created Date: </div>
                <div class="detail_data"><?php echo date('Y-m-d', strtotime($agent_model['ag_createddate'])); ?></div>
            </div>

            <div class="sub_main">
                <div class="detail_label">Updated Date: </div>
                <div class="detail_data"><?php echo date('Y-m-d', strtotime($agent_model['ag_updateddate'])); ?></div>
            </div>

            
            
            <div class="sub_main">
                <div class="detail_label">Status: </div>
                <div class="detail_data">
                    <?php echo ( $agent_model['ag_status'] == 1 ) ? 'Active' : 'Inactive'; ?>
                </div>
            </div>

        </div>

    </div>
</div>
